package com.icloud.common.web.constants;

import java.time.format.DateTimeFormatter;

public class CommonConstants {
    public static final Long ETHER2WEI = 1_000_000_000_000_000_000L;
    public static final String ETHER2WEI_STRING = "1000000000000000000";
    // 默认通用精度
    public static final int DEFAULT_SCALE = 6;
    // 默认收益奖励精度
    public static final int DEFAULT_RETURN_AWARD_SCALE = 6;

    public static final String DEFAULT_DATE_FORMAT = "yyyyMMdd";
    public static final DateTimeFormatter DEFAULT_DATE_FORMATTER = DateTimeFormatter.ofPattern(DEFAULT_DATE_FORMAT);
    public static final String DEFAULT_DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final DateTimeFormatter DEFAULT_DATETIME_FORMATTER = DateTimeFormatter.ofPattern(DEFAULT_DATETIME_FORMAT);
    public static final String DEFAULT_MS_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS";
    public static final DateTimeFormatter DEFAULT_MS_FORMATTER = DateTimeFormatter.ofPattern(DEFAULT_MS_FORMAT);

    // file
    public static final String DEFAULT_AVATAR_URL = "https://tuteng13.s3.ap-northeast-2.amazonaws.com/game/imgs/default-avatar.png";
    public static final String FILE_PREFIX = "hello/";
    public static final String FILE_ARTICLE_PREFIX = FILE_PREFIX+"app/article/";
    public static final String FILE_COVER_PREFIX = FILE_PREFIX+"cover/";
    public static final String FILE_CAROUSEL_PREFIX = FILE_PREFIX+"carousel/";
    public static final String FILE_VIDEO_PREFIX = FILE_PREFIX+"video/";
}
